<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class OrderInfo extends Model
{
    protected $table='order_info';
    protected $primaryKey='order_info_id';
    protected $fillable=[
      'order_id','goods_id','price','num','status',
    ];
    public function my_goods()
    {
        return $this->hasOne(Goods::class,'goods_id','goods_id');
    }
}
